package com.alibaba.sentinelannotation;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import lombok.extern.slf4j.Slf4j;

/**
 * @author YL
 * @date 16:46 2021/10/3
 */
@Slf4j
public class FallbackClassException {

    public static String fallback(String productId, String key, Throwable exception) {
        log.warn("热点数据被限流或者降级了{}",exception);
        return productId + ":热点数据被限流或者降级了";
    }


}
